package com.bone.eventsweb.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bone.eventsweb.entity.UserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 *
 * @author dkx
 * @email null
 * @date 2024-02-26 15:06:22
 */
@Mapper
public interface UserDao extends BaseMapper<UserEntity> {

    @Select("select * from user where username = #{username} order by id desc")
    UserEntity selectByUsername(String username);
}